package Behavioral_design_pattern.Observer_Pattern;


public class Cat extends MySubject{
    @Override
    public void cry() {
        System.out.println("猫叫！");
        System.out.println("-----------------------");
        for(Object obs : observers){
            ((MyObserver)obs).response();
        }
    }
}
